
# coding: utf-8

def get_grouping(num, step):
    """
    num 数据来源
    step 切割份额（几个一组）
    """
    a = [i for i in range(num)]
    b = [a[i:i+step] for i in range(0,len(a),step)]
    print(b)

get_grouping(133,5)